//
//  AppMacro.h
//  MyFramework
//
//  Created by zhangxi on 14-9-9.
//  Copyright (c) 2014年 renrendai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "URLMacro.h"

#define kAppDelegate     (AppDelegate *)[UIApplication sharedApplication].delegate

//获取屏幕 宽度、高度
#define kSCREEN_BOUNDS ([UIScreen mainScreen].bounds)
#define kSCREEN_FRAME ([UIScreen mainScreen].applicationFrame)
#define kSCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define kSCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

// 系统颜色
#define kColorSystem      [UIColor colorWithRed:255/255.f green:133/255.f blue:43/255.f alpha:1]
#define kColorBgGray      [UIColor colorWithRed:239/255.f green:239/255.f blue:244/255.f alpha:1]
#define kColorFontGray    [UIColor colorWithRed:196/255.f green:196/255.f blue:196/255.f alpha:1]
#define kColorOrange      [UIColor colorWithRed:248/255.f green:177/255.f blue:0/255.f alpha:1]
#define kColorFontBlue    [UIColor colorWithRed:39/255.f green:114/255.f blue:251/255.f alpha:1]

#define kScaleWidth(width) kSCREEN_WIDTH * (width/320.0f) /* 根据5s的比例算宽度 */
#define kScaleHeight(height) kSCREEN_HEIGHT * (height/568.0f) /* 根据5s的比例算高度 */
#define kAppFontSize(size) [UIFont systemFontOfSize:kFontSize(size)]
#define kFontSize(size) kSCREEN_HEIGHT * (size/568.0f)


#define kMessage_NetError          @"网络连接异常"
#define kMessage_NetLoading        @"正在加载"
#define kNoticeChangeAvatarImage   @"ChangeAvatarImage"
#define kNoticeChangeName          @"ChangeName"

#define kAppScheme                 @"MiteCar"
